/**************************************************************************************
 *  Function    : showRolloverPopup()                                                 *
 *  Description : For use on the corporate website, displays the image specified by   *
 *                    the parameter, aImageFilepath, in a <div> rollover popup.       *
 *  Parameters  : aImageFilepath, path to image (relative to page invoking this       *
 *                    function)                                                       *
 *  Assumptions : Invoking page contains a <div> named "RolloverPopupDiv" which       *
 *                    contains an image placeholder named "RolloverPopupImage".       *
 *  Authors     : Samson Wong                                                         *
 **************************************************************************************/
function showRolloverPopup(aImageFilepath) {
	var imageNode = document.getElementById("RolloverPopupImage");
	var divNode = document.getElementById("RolloverPopupDiv");
	if ((divNode != null) && (imageNode != null)) {
		imageNode.src = aImageFilepath;
		divNode.style.visibility = "visible";
	}
}

/**************************************************************************************
 *  Function    : hideRolloverPopup()                                                 *
 *  Description : For use on the corporate website, hides the <div> rollover popup.   *
 *  Assumptions : Invoking page contains a <div> named "RolloverPopupDiv" which       *
 *                    contains an image placeholder named "RolloverPopupImage".       *
 *  Authors     : Samson Wong                                                         *
 **************************************************************************************/
function hideRolloverPopup() {
	var imageNode = document.getElementById("RolloverPopupImage");
	var divNode = document.getElementById("RolloverPopupDiv");
	if ((divNode != null) && (imageNode != null)) {
		imageNode.src = "/images/spacer.gif";
		divNode.style.visibility = "hidden";
	}
}
